package com.dj.mingkong.admin.biz.service.music.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dj.mingkong.admin.biz.controller.music.vo.request.AlbumCollectQueryVo;
import com.dj.mingkong.admin.biz.controller.music.vo.response.AlbumCollectVo;
import com.dj.mingkong.admin.biz.repository.database.music.AlbumCollectRepository;
import com.dj.mingkong.admin.biz.service.music.AlbumCollectService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;


/**
 * 专辑收藏服务接口实现
 *
 * @author zenglonghui
 * @date: 2022/12/9 11:42
 */
@Slf4j
@Service("albumCollectService")
public class AlbumCollectServiceImpl implements AlbumCollectService {
    @Resource
    private AlbumCollectRepository albumCollectRepository;

    @Override
    public Page<AlbumCollectVo> pageByVo(AlbumCollectQueryVo queryVo) {
        return albumCollectRepository.getMapper().listPage(Page.of(queryVo.getPage(), queryVo.getPageSize()), queryVo);
    }
}
